//
//  XFSanBox.m
//  WorkManager
//
//  Created by ukongm on 17/1/15.
//  Copyright © 2017年 ukongm. All rights reserved.
//

#import "XFSanBox.h"

@implementation XFSanBox

+ (void)setValue:(id )value andKey:(NSString *)key{
    [[NSUserDefaults standardUserDefaults] setObject:value forKey:key];
    [self save];
}

+ (id )readForKey:(NSString *)key{
    return [[NSUserDefaults standardUserDefaults] objectForKey:key];
}

+ (void)save{
    [[NSUserDefaults standardUserDefaults] synchronize];
}

@end
